﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.ServiceModel;

namespace GGHserver
{
    class Program
    {
        public static void Main()
        {

            // Create a ServiceHost.

            Uri uri = new Uri("http://localhost:8000/Service");

            using (ServiceHost serviceHost = new ServiceHost(typeof(Service), uri))
            {

                serviceHost.Open();
                Console.WriteLine("The service is ready");
                Console.WriteLine("Press ENTER to shut down service.");
                Console.ReadKey();
                // Close the service.
                serviceHost.Close();

            }

        }
    }
}
